//
//  HEApplyModel.m
//  HealthFamily
//
//  Created by 吴欧 on 2020/12/9.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HEApplyModel.h"

@implementation HEApplyModel

- (NSString *)KAuditNote {
    if (!_KAuditNote) {
        _KAuditNote = [DYTools isBlankString:_audit_note] ? @"-" : _audit_note;
    }
    return _KAuditNote;
}

- (NSString *)KDocNote {
    if (!_KDocNote) {
        _KDocNote = [DYTools isBlankString:_doctor_note] ? @"-" : _doctor_note;
    }
    return _KDocNote;
}

- (NSString *)KStateText {
    if (!_KStateText) {
        if ([@"0" isEqualToString:_order_status]) {
            _KStateText = @"已申请";
            _KStateTextColor = CNavBgColor;
        }else if ([@"1" isEqualToString:_order_status]) {
            _KStateText = @"处理中";
            _KStateTextColor = CNavBgColor;
        }else if ([@"2" isEqualToString:_order_status]) {
            _KStateText = @"已通过";
            _KStateTextColor = CPriceColor;
        }
        else { // 3
            _KStateText = @"已拒绝";
            _KStateTextColor = CNavDargGrayColor;
        }
        
        if ([@"3" isEqualToString:_audit_status]) {
            _KStateText = @"待付款";
            _KStateTextColor = CPriceColor;
        }
    }
    return _KStateText;
}

@end
